package org.openmore.platform;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

@EnableTransactionManagement
@ServletComponentScan("org.openmore.platform.service")
@MapperScan(value = "org.openmore.platform.dao")
@ComponentScan(basePackages = "org.openmore.platform.configuration," +
        "org.openmore.platform.wechatMini," +
        "org.openmore.platform.wechatOpen," +
        "org.openmore.platform.wechatMp," +
        "org.openmore.platform.annotation," +
        "org.openmore.platform.framework," +
        "org.openmore.platform.controller," +
        "org.openmore.platform.service.impl,"+
        "org.openmore.platform")
@SpringBootApplication
@EnableDiscoveryClient
public class OpenMorePlatformApplication {
    public static void main(String[] args) {
        SpringApplication.run(OpenMorePlatformApplication.class, args);
    }
}
